package com.otto.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.otto.reggie.common.R;
import com.otto.reggie.entity.Employee;

import javax.servlet.http.HttpServletRequest;

/**
 * 作者：otto
 * 时间：2022-07-19 16:39:36
 */
public interface EmployeeService extends IService<Employee> {
    //登录
    R<Employee> login(HttpServletRequest request,Employee employee);
    //退出登录
    R<String> logout(HttpServletRequest request);
    //新增员工
    R<String> add(HttpServletRequest request,Employee employee);
    //员工分页查询
    R<Page> page(int page,int pageSize,String name);
    //启用or禁用员工账号
    R<String> update(HttpServletRequest request,Employee employee);

    R<Employee> getById1(Long id);
}
